home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / captive / client-file-info.h < prev    next >
C/C++ Source or Header  |  2006-05-01  |  3KB  |  61 lines

  1. /* $Id: client-file-info.h,v 1.1 2006/01/01 07:24:34 lace Exp $
  2.  * Include file with client-application 'file' access to libcaptive
  3.  * Copyright (C) 2005 Jan Kratochvil <project-captive@jankratochvil.net>
  4.  * 
  5.  * This program is free software; you can redistribute it and/or modify
  6.  * it under the terms of the GNU General Public License as published by
  7.  * the Free Software Foundation; exactly version 2 of June 1991 is required
  8.  * 
  9.  * This program is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.  * GNU General Public License for more details.
  13.  * 
  14.  * You should have received a copy of the GNU General Public License
  15.  * along with this program; if not, write to the Free Software
  16.  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  17.  */
  18.  
  19.  
  20. #ifndef _CAPTIVE_CLIENT_FILE_INFO_H
  21. #define _CAPTIVE_CLIENT_FILE_INFO_H 1
  22.  
  23.  
  24. #include <glib/gmacros.h>
  25. #include <glib-object.h>
  26. #include <libgnomevfs/gnome-vfs-file-info.h>    /* for GnomeVFSFileInfo*/
  27.  
  28.  
  29. G_BEGIN_DECLS
  30.  
  31. #define CAPTIVE_FILE_INFO_TYPE_OBJECT            (captive_file_info_object_get_type())
  32. #define CAPTIVE_FILE_INFO_OBJECT(object)         (G_TYPE_CHECK_INSTANCE_CAST((object),CAPTIVE_FILE_INFO_TYPE_OBJECT,CaptiveFileInfoObject))
  33. #define CAPTIVE_FILE_INFO_OBJECT_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass),CAPTIVE_FILE_INFO_TYPE_OBJECT,CaptiveFileInfoObjectClass))
  34. #define CAPTIVE_FILE_INFO_IS_OBJECT(object)      (G_TYPE_CHECK_INSTANCE_TYPE((object),CAPTIVE_FILE_INFO_TYPE_OBJECT))
  35. #define CAPTIVE_FILE_INFO_IS_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),CAPTIVE_FILE_INFO_TYPE_OBJECT))
  36. #define CAPTIVE_FILE_INFO_OBJECT_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj),CAPTIVE_FILE_INFO_TYPE_OBJECT,CaptiveFileInfoObjectClass))
  37. typedef struct _CaptiveFileInfoObject      CaptiveFileInfoObject;
  38. typedef struct _CaptiveFileInfoObjectClass CaptiveFileInfoObjectClass;
  39.  
  40.  
  41. struct _CaptiveFileInfoObject {
  42.     GObject parent_instance;
  43.  
  44.     /*< public >*/
  45.     GnomeVFSFileInfo p;
  46.     /* Unsupported by GnomeVFS, see: http://bugzilla.gnome.org/show_bug.cgi?id=325427 */
  47.     guint atime_nsec;    /* Valid if: p.valid_fields&GNOME_VFS_FILE_INFO_FIELDS_ATIME */
  48.     guint mtime_nsec;    /* Valid if: p.valid_fields&GNOME_VFS_FILE_INFO_FIELDS_MTIME */
  49.     guint ctime_nsec;    /* Valid if: p.valid_fields&GNOME_VFS_FILE_INFO_FIELDS_CTIME */
  50.     };
  51.  
  52.  
  53. GType captive_file_info_object_get_type(void);
  54.  
  55. GnomeVFSResult captive_file_info_object_new(CaptiveFileInfoObject **captive_file_info_object_return);
  56.  
  57. G_END_DECLS
  58.  
  59.  
  60. #endif /* _CAPTIVE_CLIENT_FILE_INFO_H */
  61.